package com.uwlaser.modules.quartz.service.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.HashSet;

/**
 * @description:备份数据库请求实体
 * @author: UW_13724@caoguilin
 * @time: 2023/3/27 9:50
 */
@Data
public class BackUpParam {
    @ApiModelProperty("主机名")
    @NotBlank(message = "主机名【host】不能为空！")
    private String host;

    @ApiModelProperty("用户名")
    @NotBlank(message = "用户名【userName】不能为空！")
    private String userName;

    @ApiModelProperty("密码")
    @NotBlank(message = "密码【password】不能为空！")
    private String password;

    @ApiModelProperty("端口")
    @NotBlank(message = "端口【port】不能为空！")
    private String port;

    @ApiModelProperty("库名")
    @NotBlank(message = "库名【dbName】不能为空！")
    private String dbName;

    @ApiModelProperty("表名")
    @NotBlank(message = "表名【tableNameSets】不能为空！")
    private HashSet<String> tableNameSets;

    @ApiModelProperty("备份路径")
    @NotBlank(message = "备份路径【backUpPath】不能为空！")
    private String backUpPath;
}
